package com.andy.infrastructure.ioc.configuration;

import com.andy.infrastructure.ioc.annotation.Bean;
import com.andy.infrastructure.ioc.annotation.Configuration;
import com.andy.infrastructure.util.DruidUtils;

import javax.sql.DataSource;

@Configuration
public class DatesourceConfiguration {

    @Bean
    public DataSource getDataSource(){
        return DruidUtils.getInstance();
    }

}
